import { get, post, deletes, put } from './axios.js';//导入axios实例文件中方法
import qs from 'qs';

// 查询区域code和学校信息
export const areaCodeList = () => {
  return post('/users/school/area_code')
}

// 创建主题
export const createTheme = (paramObj) => {
  return post('/users/create/theme', qs.stringify(paramObj))
}

// 上传图片
export const uploaderImage = (paramObj) => {
  return post('/users/receive/image', paramObj)
}

// 查询主题列表
export const selectThemeList = (paramObj) => {
  return post('/users/select/theme/list', qs.stringify(paramObj))
}

// 查询主题详情
export const selectThemeDetail = (paramObj) => {
  return post('/users/select/theme/detail', qs.stringify(paramObj))
}
// 删除主题列表
export const deleteThemeList = (paramObj) => {
  return post('/users/deletetheme', qs.stringify(paramObj))
}

// 修改主题状态
export const changeThemeStatus = (paramObj) => {
  return post('/users/changestatus', qs.stringify(paramObj))
} 

export const selectWein = () => {
  return get('/users/wxs')
}

// 查询个人信息
export const selectPersonMess = (paramObj) => {
  return post('/users/select/person/message', qs.stringify(paramObj))
}
